export enum DeviceManufacturerEnum {
  YUSHI = 1,
  DAHUA = 2,
  HAIKANG = 3,
};

export const DEVICE_MANUFACTURER_OPTIONS: any[] = [
  {label: '宇视', value: DeviceManufacturerEnum.YUSHI},
  {label: '大华', value: DeviceManufacturerEnum.DAHUA},
  {label: '海康', value: DeviceManufacturerEnum.HAIKANG},
];

export const DeviceManufacturerMap: any = {
  [DeviceManufacturerEnum.YUSHI]: '宇视',
  [DeviceManufacturerEnum.DAHUA]: '大华',
  [DeviceManufacturerEnum.HAIKANG]: '海康',
};

export enum DeviceTypeEnum {
  COMMON_CAMERA = 1,
  FACE_CAMERA = 2,
  GATE_VERIFICATION_TERMINAL = 3,
  FACE_VERIFICATION_TERMINAL = 4,
  MEAL_TAKE_MACHINE = 5,
  CARD_SYNC_MACHINE = 6,
  SELF_ORDER_MACHINE = 7,
  LOCK_IDENTIFY_TERMINAL = 8,
  SENSOR = 9,
};

export const DEVICE_TYPE_OPTIONS = [
  {label: '普通摄像头', value: DeviceTypeEnum.COMMON_CAMERA},
  {label: '⼈脸摄像头', value: DeviceTypeEnum.FACE_CAMERA},
  {label: '闸机核验终端', value: DeviceTypeEnum.GATE_VERIFICATION_TERMINAL},
  {label: '⼈脸核验终端', value: DeviceTypeEnum.FACE_VERIFICATION_TERMINAL},
  {label: '取餐机', value: DeviceTypeEnum.MEAL_TAKE_MACHINE},
  {label: '卡户同步机', value: DeviceTypeEnum.CARD_SYNC_MACHINE},
  {label: '⾃助点餐机', value: DeviceTypeEnum.SELF_ORDER_MACHINE},
  {label: '⻋闸识别终端', value: DeviceTypeEnum.LOCK_IDENTIFY_TERMINAL},
  {label: '传感器', value: DeviceTypeEnum.SENSOR},
];

export const DeviceTypeMap: any = {
  [DeviceTypeEnum.COMMON_CAMERA]: '普通摄像头',
  [DeviceTypeEnum.FACE_CAMERA]: '⼈脸摄像头',
  [DeviceTypeEnum.GATE_VERIFICATION_TERMINAL]: '闸机核验终端',
  [DeviceTypeEnum.FACE_VERIFICATION_TERMINAL]: '闸机核验终端',
  [DeviceTypeEnum.MEAL_TAKE_MACHINE]: '闸机核验终端',
  [DeviceTypeEnum.CARD_SYNC_MACHINE]: '闸机核验终端',
  [DeviceTypeEnum.SELF_ORDER_MACHINE]: '闸机核验终端',
  [DeviceTypeEnum.LOCK_IDENTIFY_TERMINAL]: '闸机核验终端',
  [DeviceTypeEnum.SENSOR]: '闸机核验终端',
};

export enum DevicePurposeEnum {
  IN_SCHOOL = 1,
  OUT_SCHOOL = 2,
  RETURN_BED = 3,
  OUT_BED = 4,
};


export const DEVICE_PURPOSE_OPTIONS: any[] = [
  {label: '进校', value: DevicePurposeEnum.IN_SCHOOL},
  {label: '出校', value: DevicePurposeEnum.OUT_SCHOOL},
  {label: '归寝', value: DevicePurposeEnum.RETURN_BED},
  {label: '出寝', value: DevicePurposeEnum.OUT_BED},
];

export const DevicePurposeMap: any = {
  [DevicePurposeEnum.IN_SCHOOL]: '进校',
  [DevicePurposeEnum.OUT_SCHOOL]: '出校',
  [DevicePurposeEnum.RETURN_BED]: '归寝',
  [DevicePurposeEnum.OUT_BED]: '出寝',
};

export enum GenderEnum {
  WOMAN = 0,
  MAN = 1,
};

export const GenderMap: any = {
  [GenderEnum.WOMAN]: '女',
  [GenderEnum.MAN]: '男',
};

export enum PersonTypeEnum {
  STUDENT = 3,
};

export const PersonTypeMap: any = {
  [PersonTypeEnum.STUDENT]: '学生',
};
